{{ define "main"}}

<h2>新闻列表</h2>
{{ range where .Site.RegularPages "Section" "news" }}
<div>
  <a href="{{.Permalink}}">{{.Title}}-{{ .Type}}-{{ .Section }}</a>
</div>
{{ end }}

<h2>博文列表</h2>
{{ range where .Site.RegularPages "Section" "posts" }}
<div>
  <a href="{{.Permalink}}">{{.Title}}-{{ .Type}}-{{ .Section }}</a>
</div>
{{ end }}

<h2>所有的文章列表</h2>
{{ range .Site.RegularPages }}
<div>
  <a href="{{.Permalink}}">{{.Title}}-{{ .Type}}-{{ .Section }}</a>
</div>
{{ end }}

{{ end }}
